package com.meilai.project.dto.business.building;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 张驰
 * @description
 * @date 2022-10-20 13:58
 */
@Data
public class BuildingMapExportMPParams {
    @NotNull(message = "开始日期不能为空")
    @ApiModelProperty("开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime begin_date;

    @NotNull(message = "结束日期不能为空")
    @ApiModelProperty("结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_date;

    @NotNull(message = "楼盘ids不能为空")
    @ApiModelProperty("楼盘ids")
    private List<Long> building_ids;

    @ApiModelProperty("媒体类型ids,可不传")
    private List<Long> media_type_ids;

    @ApiModelProperty("是否按楼层分组进行统计")
    private Boolean floor_group = false;

    @ApiModelProperty("1:只统计A面 2:只统计B面 3:AB都需要")
    private Integer abType = 3;
}
